package org.john.javalib;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by adsame on 17-8-16.
 */
public class SwitchCaseTest {
    public static void main(String args[]) {
        String str = "s/<Root level=\"error\">/<AsyncLogger name=\"StrategyDebugLogger\" level=\"off\" additivity=\"false\">\n" +
                "\\n<AppenderRef ref=\"strategyDebugFile\"\\/>\\n<\\/AsyncLogger>\\n<Root level=\"error\">/";
        System.out.println(str.substring(93));
        Map<Long, Double> map = new HashMap();
        map.put(1l, 1.0);
        map.put(2l, 2.0);
        System.out.println(map);
        Integer i = null;
        switch(i) {
//            case null:
//                System.out.println("null");
//                break;
            case 0:
                System.out.println("0");
                break;
            default:
                System.out.println("default");
        }
    }
}
